package study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/*
											springCloud-netfix终极框架


	注：feign项目若果想要有hystrix.stream
	   需要引入spring-cloud-starter-netflix-hystrix.jar  并且在主类上加@EnableCircuitBreaker
	http://127.0.0.1:8084/actuator/hystrix.stream

	http://localhost:8084/feign/1
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker
public class FeignHystrixApp4 {
	
//	@Bean
////	@LoadBalanced
//	public RestTemplate restTemplate() {
//		return new RestTemplate();
//	}
	
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(FeignHystrixApp4.class);
		ConfigurableApplicationContext context = application.run(args);
		
		
		
		System.out.println("======================end=======================");
	}

}
